package com.hspedu.codeblock;

import java.util.Random;

public class RandomValue {
        public static void main(String[] args) {
            int numGroups = 30;
            float minValue = 98.50f;
            float maxValue = 101.00f;

            Random random = new Random();

            for (int i = 1; i <= numGroups; i++) {
                System.out.print("Group " + i + ": ");

                for (int j = 0; j < 11; j++) {
                    float randomValue = minValue + random.nextFloat() * (maxValue - minValue);
                    System.out.printf("%.2f,", randomValue);
                }

                System.out.println();
            }
        }

}


